import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//引入element-plus组件库
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入element-plus图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//修改elementPlus默认中文
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
const app=createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus, {locale: zhCn}).use(store).use(router).mount('#app')
